//
//  CollectionGameCell.m
//  YuDou
//
//  Created by qiupeng on 2018/6/24.
//  Copyright © 2018年 yingqi. All rights reserved.
//

#import "CollectionGameCell.h"

@interface CollectionGameCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation CollectionGameCell

- (void)setGame:(AnchorGroup *)game
{
    _game = game;

    self.titleLabel.text = game.tag_name;
    if (game.icon_url.length) {
        [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:game.icon_url]];
    }else{
        self.iconImageView.image = [UIImage imageNamed:@"home_column_more"];
    }
}
@end
